import { getAllRoleList, isUserExist } from '/@/api/demo/system';
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { Switch } from 'ant-design-vue';
import { setUserStatus } from '/@/api/demo/system';
import { useMessage } from '/@/hooks/web/useMessage';
import { h } from 'vue';
export const columns: BasicColumn[] = [
  {
    title: '事件名字',
    dataIndex: 'name',
    width: 120,
  },
  {
    title: '开始时间',
    dataIndex: 'startTime',
    width: 120,
  },
  {
    title: '结束时间',
    dataIndex: 'endTime',
    width: 120,
  },
  {
    title: '奖励积分',
    dataIndex: 'score',
    width: 120,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'eventName',
    label: '事件名字',
    component: 'Input',
    colProps: { span: 5 },
  },
];

export const signEventFormSchema: FormSchema[] = [
  {
    field: 'id',
    label: 'id',
    component: 'Input',
    required: false,
  },
  {
    field: 'name',
    label: '事件名字',
    component: 'Input',
    required: true,
  },
  {
    field: 'startTime',
    label: '开始时间',
    component: 'Input',
    required: true,
  },
  {
    field: 'endTime',
    label: '结束时间',
    component: 'Input',
    required: true,
  },
  {
    field: 'score',
    label: '奖励积分',
    component: 'Input',
    required: true,
  },
];
